package com.pandora.credit.mongo.service.impl;

import com.pandora.credit.mongo.dao.MongoCreditDao;
import com.pandora.credit.mongo.entity.MongoCredit;
import com.pandora.credit.mongo.service.MongoCreditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author developer
 */
@Service
public class MongoCreditServiceImpl implements MongoCreditService {

    @Autowired
    private MongoCreditDao mongoCreditDao;

    @Override
    public List<MongoCredit> queryAll() {
        return mongoCreditDao.selectAll();
    }

    @Override
    public List<MongoCredit> queryById(List<Long> ids) {
        return mongoCreditDao.selectById(ids);
    }
}
